package com.abel.bigwater.dataserver.model.h86a

enum class H86AChannelType(val abbr: Char, val code: Byte) {
    PulseType('P', 1),
    SwitchType('K', 2),
    AnalogType('A', 3),
    WarnType('W', 4);

    companion object {
        fun findByCode(_code: Byte) = H86AChannelType.values().find { it.code == _code }
    }
}